<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <select name="" id="">
        <child></child>
        <child></child>
        <child></child>
        <child></child>
      </select>

      <ul>
        <li-child></li-child>
        <li-child></li-child>
        <li-child></li-child>
      </ul>
    </div>

    <script src="./Vue3.js"></script>
    <script>
      const { createApp } = Vue;

      // option,tr是不能作为组件的根元素
      const Child = {
        template: `
          <option>11111</option>
        `,
      };

      const LiChild = {
        template: `
          <li>22222</li>
        `,
      };

      createApp({
        data() {
          return {};
        },
        components: {
          Child,
          LiChild,
        },
      }).mount("#app");
    </script>
  </body>
</html>
